import {
	PageView
} from '@/layouts';

export default {
	path: '/payment',
	name: 'payment',
	redirect: '/payment/Account',
	component: PageView,
	meta: {
		title: '支付管理',
		icon: 'pay-circle',
		permission: [ 'paymentManagement' ]
	},
	children: [{
			path: '/payment/Account',
			name: 'PaymentAccountForm',
			component: () => import('@/views/payment/Account'),
			meta: {
				title: '套餐列表',
				permission: [ 'SetMeal_list' ]
			},
		},
		{
			path: '/payment/Recharge',
			name: 'PaymentRechargeForm',
			component: () => import('@/views/payment/Recharge'),
			meta: {
				title: '充值管理',
				permission: [ 'order_list' ]
			},
		},
		{
			path: '/payment/payRecord',
			name: 'PaymentPayrecordForm',
			component: () => import('@/views/payment/payRecord'),
			meta: {
				title: '支付记录',
				permission: [ 'trade_list' ]
			},
		},
		{
			path: '/payment/Record',
			name: 'PaymentRecordForm',
			component: () => import('@/views/payment/Record'),
			meta: {
				title: '对账结算',
				permission: [ 'settlement_settlement' ]
			},
		},
		{
			path: '/payment/Invoice',
			name: 'PaymentInvoiceForm',
			component: () => import('@/views/payment/Invoice'),
			meta: {
				title: '开票信息',
		 		permission: [ 'invoice_list' ]
			},
		},
	],
};
